﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Seagull.Generic;

namespace Seagull.Shell.Views
{
    public class BaseView : UserControl
    {
        public BaseView()
        {
        }

        public event EventHandler<EventArgs<ViewKind>> ViewChangeRequested;

        protected virtual void OnViewChangeRequested(ViewKind viewKind)
        {
            var handler = ViewChangeRequested;
            if (handler != null) handler(this, new EventArgs<ViewKind>(viewKind));
        }
    }
}
